Why my function is firing even though it is inside a .then chain (promise

join shbcf.ru